﻿#include <QtGui/QApplication>
#include "header/stdafx_logm.h"

using namespace LOGM;
int main(int argc, char *argv[])
{
    QApplication log_a(argc, argv);

	QMainWindow main;

	
	ViewLog *w=new ViewLog;

	main.addDockWidget(Qt::DockWidgetArea::BottomDockWidgetArea,w);
	main.show();

	for(int i=0; i<10; i++){
		qDebug() << "Debug: This is Debug: " ;
		qWarning() << "Warning: This is Warning: " ;
		qCritical() << "Critical: This is Critical: " ;
		//qFatal("Fatal:");// << "This is Fatal：" << endl;
	}

    return log_a.exec();
}
